<%-- 
    Document   : addCar
    Created on : Oct 26, 2011, 10:08:56 PM
    Author     : MrKoi
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.fckeditor.net" prefix="FCK"%>
                             
	<script src="development-bundle/jquery-1.6.2.js"></script>
        <script type="text/javascript" src="js/jquery.validate.js"></script>
        <script type="text/javascript" src="js/additional-methods.js"></script>	
        <script type="text/javascript">
            $(function(){
                $("#addHotel").validate({
                    rules:{
                        txtName: {
                            required: true                            
                        },
                        txtAddress: {
                            required: true                            
                        },
                        txtPhone: {
                            phone: true                            
                        },
                        txtPrice: {
                            required: true                            
                        }
                    }                    
                })
            
        });     
	</script>

                            <div class="column1">
                                <center><span style="font-size: 15px;color: #2a2b2b;width: 200px;font-style: italic;font-weight: bold;">Add Hotel</span><hr width="200" style="color: #0000FF"></hr></center><br>
                                <form name="addHotel" action="UpImages" id="addHotel" enctype="multipart/form-data" method="post">
                                    <table cellspacing="10"  border="0" style="background-color: #eaeff2">                                    
                                    <tr>
                                        <td valign="top">Name: </td><td valign="top"><input type="text" name="txtName" size="60"/></td>
                                    </tr>
                                    <tr>
                                        <td valign="top">Seating Capacity:</td><td valign="top"><input type="text" name="txtSeatingCapacity" /></td>
                                    </tr>
                                    <tr>
                                        <td valign="top">Air conditioner: </td><td valign="top"><input type="radio" name="rdoAirConditioner" value="true"/>True &nbsp &nbsp&nbsp<input type="radio" name="rdoAirConditioner" value="false" checked="true"/>False </td>
                                    </tr>
                                    <tr>    
                                        <td valign="top">Price: </td><td valign="top"><input type="text" name="txtPrice" size="60"/></td>
                                    </tr>
                                    <tr>
                                        <td valign="top">Discount type:</td><td valign="top"><select name="sltDiscount" style="width: 388px">
                                                <option value="NoDiscount">No Discount</option>
                                                <option value="PercentDiscount">Percent Discount</option>
                                                <option value="DiscountedValue">Discounted Value</option>                                                                                          
                                            </select></td>
                                    </tr>
                                    <tr>
                                        <td valign="top">Locations: </td><td valign="top"><select name="sltLocations" style="width: 388px">
                                                <option value="HaNoi">Ha Noi</option>
                                                <option value="HCM">Ho Chi Minh</option>
                                                <option value="DaNang">Da Nang</option>
                                                <option value="HaiPhong">Hai Phong</option>                                                                
                                            </select></td>
                                    </tr>
                                    <tr align="center">
                                        <td colspan="2" valign="top"><input type="submit" value="Add"/> ||| <input type="reset"/></td>
                                    </tr>                                        
                                </table>
                                    </form>
                            </div>
                           